class CreateOrders < ActiveRecord::Migration
  def self.up
    create_table :orders do |t|
      t.column :id, :primary_key
      t.column :name, :string
      t.column :address, :string
      t.column :city, :string
      t.column :state, :string
      t.column :zip, :string
      t.column :email, :string
      t.column :shipping_cost, :float
      t.column :card_type, :string
      t.column :credit_card, :string
      t.column :card_holder, :string
      t.column :expiration_month, :integer
      t.column :expiration_year, :integer
      t.column :created_on, :datetime
      t.column :updated_on, :datetime
    end
  end

  def self.down
    drop_table :orders
  end
end
